<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>mootools.js  测试</title>
		<script src="../../common/libs/mootools.js" type="text/javascript"></script>
		
		<script src="../../common/project/project.js" type="text/javascript"></script>
		<script src="../../common/assets/scripts/default.js" type="text/javascript"></script>
		<script src="../../common/assets/scripts/debug.js" type="text/javascript"></script>
    </head>
    <body>
        <div style="background: yellow;" id="a">
				<div style="background: red; width:200px;" id="aa">id=aa<div style="background: black; color:white" id="aba">id=aba</div></div>
				<div style="background: green;" id="ab">id=ab<input type="button" name="button" id="button" value="子控件" /></div>
			</div>
			<hr>
        <script>
            var a = $('a'), aa = $('aa'), aaa = $('aaa'), ab = $('ab'), s = new Elements();
            s.push(ab);
            s.push(aaa);
            
            
            var fns = [
				["Element.prototype.appendText", function(){return a.appendText('asdasdasdasda');} ],
				["Element.prototype.clone", function(){return a.clone();} ],
				["Element.prototype.getPrevious", function(){return a.getPrevious();} ],
				["Element.prototype.getNext", function(){return a.getNext();} ],
				["Element.prototype.getFirst", function(){return a.getFirst();} ],
				["Element.prototype.getLast", function(){return a.getLast();} ],
				["Element.prototype.getParent", function(){return a.getParent(); } ],
				["Element.prototype.getAllPrevious", function(){return a.getAllPrevious();} ],
				["Element.prototype.getAllNext", function(){return a.getAllNext();} ],
				["Element.prototype.getParents", function(){return a.getParents();} ],
				["Element.prototype.getParents", function(){return a.getSiblings();} ],
				["Element.prototype.getChildren", function(){return a.getChildren();} ],
				["Element.prototype.replaces", function(){return aa.replaces(ab);} ],
				["Element.prototype.wraps", function(){return new Element("<i></i>").wraps(a); } ],
				["Element.prototype.contains", function(){ return a.contains(ab);} ],
				["Element.prototype.erase", function(){ return a.erase(ab); } ],
				["Element.prototype.empty", function(){ return a.empty();}], 
            	["Element.prototype.dispose", function(){  return a.dispose();} ]
			];
        </script>
    </body>
</html>
